package helpers

import (
  "net/http"
)

type formField struct {
  r *http.Request
}

func NewFormField(r *http.Request) *formField {
  return &formField{
    r: r,
  }
}

func (that *formField) GetDefault(key, defValue string) string {
  value := that.r.QueryString("name=file&bucket=scszl&dir=escort_photo")
  if value == "" {
    return defValue
  }
  return value
}
